<%@ page import="model.ContactGroup"%>
<%@ page import="java.util.List"%>

<%
	List<ContactGroup> lcg = (List<ContactGroup>)request.getAttribute("groupList");
%>

Select a group : <select name="contactGroupSelect" onChange="loadContactsFromGroup(this)">
	<% for (ContactGroup cg : lcg) { %>
	<option value="<%=cg.getId()%>"><%=cg.getName()%></option>
	<% } %>
</select>

<div id="contactList"></div>
<div id="detailContact"></div>